import request from "@/utils/request";
//获取所有链接列表
export function getLinkList(num,size) {
    return request({
        url: "/link/page",
        method: "get",
        params: {
            pageNum: num,
            pageSize: size,
        }
    });
}
//根据id删除链接
export function deleteLink(id) {
    return request({
        url: "/link/" + id,
        method: "delete",
    });
}
//添加或更新链接
export function addOrUpdateLink(link) {
    return request({
        url: "/link",
        method: "post",
        data: link
    });
}
